#ifndef COMMON_EXCEPTION_H
#define COMMON_EXCEPTION_H

#include <string>
#include <exception>

namespace cmn {

	class Exception : public std::exception {
	public:

		Exception( std::string message ) throw() :
			m_message( message ) {
		}

		Exception( const Exception& orig ) throw() :
			m_message( orig.m_message ) {
		}

		~Exception() throw() {
		}

		virtual const char* what() const throw() {
			return m_message.c_str();
		}

		const std::string GetMessage() const throw() {
			return m_message;
		}
	private:
		std::string m_message;
	};
}

#endif
